package com.boot.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.boot.service.UpdateService;
import com.boot.util.AdResult;

@Controller
public class UpdateController {
	
	@Resource
	private UpdateService updateService;
	
	@RequestMapping("update/checkUpdate.do")
	@ResponseBody
	public AdResult checkUpdate(){
		AdResult adResult=updateService.getLatest();
		return adResult;
	}
	
}
